package com.sgb.kjwl.view.ui.adapter.transport;

import android.content.Context;
import android.widget.TextView;

import com.sgb.kjwl.R;
import com.sgb.kjwl.model.entity.transport.Way;
import com.swgk.core.recyclerview.adapter.BaseRecycleAdapter;
import com.swgk.core.recyclerview.adapter.ItemViewHolder;

import java.util.List;

public class OftenDeliverCityAdapter extends BaseRecycleAdapter<Way> {

    public OftenDeliverCityAdapter(Context context, List<Way> datas) {
        super(context, R.layout.item_often_deliver_city, datas);
    }

    @Override
    public void convert(ItemViewHolder holder, Way way) {
        ((TextView) holder.getItem()).setText(way.getCityName());
    }
}
